'use strict';

/* App Module */

var tplangularApp = angular.module('tplangularApp', [
  'ngRoute',
  'tplangularControllers',
  'ui.bootstrap'
]);

tplangularApp.config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/tplangular', {
        templateUrl: 'app/ued/tplangular/list.ftl',
        controller: 'tplangularListCtrl'
     	}).when('/detail/:itemId', {
			templateUrl : 'app/ued/tplangular/detail.ftl',
			controller  : 'itemDetailController'
		}).
      otherwise({
        redirectTo: '/tplangular'
      });
  }]);
